package com.woniuxy.demo.service;

import com.woniuxy.demo.entity.ResponseResult;
import com.woniuxy.demo.entity.User;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author 佘赛飞
 * @create 2021 -10 -12 7:24 PM
 */
public interface UserService {
    User getUserByName(String username);
    List<User> getUsers(@Param("user") User user,
                           @Param("pageIndex")int pageIndex, @Param("pageSize")int pageSize);
    int getUserCount(@Param("user") User user);
    //更新
    ResponseResult updateUser(User user);
    //新增
    ResponseResult addUser(User user);
    //删除
    ResponseResult deleteUser(int uid);
}
